minios: fix a memory corruption in blkfront
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 14 Apr 2009 10:21:45 +0000 (11:21 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 14 Apr 2009 10:21:45 +0000 (11:21 +0100)
commit0c75fee1bc3154c21078c61787a52058aae984e2
tree26c9653c047902fd135d07ed584924658cdba00d
parent382b95f627a91a75545799f36534dcf6d145381e
minios: fix a memory corruption in blkfront

The corruption happens every time we pass a sector aligned buffer
(instead of a page aligned buffer) to blkfront_aio. To trigger the COW
we have to write at least a byte to each page of the buffer, but we
must be careful not to overwrite useful content.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
extras/mini-os/blkfront.c